import request from '@/utils/request'

export default {
  //规章列表
  gui_zhang_List(params) {
    return request.get('/api/user/guizhang_list', {
      params
    })
  },
  //规章详情
  gui_zhang_detail(id) {
    return request.get(`/api/user/guizhang_detail/${id}`)
  },
  gui_zhang_List_delete(id){
    return request.delete(`/api/user/guizhang_del/${id}`)
  },
  gui_zhang_List_post(params) {
    return request.post('/api/user/guizhang_list', params)
  },
  // 行政规范列表
  xing_zheng_gui_fan_list(params) {
    return request.get('/api/user/xing_zheng_gui_fan_list', {
      params
    })
  },
  xing_zheng_gui_fan_detail(id) {
    return request.get(`/api/user/xing_zheng_gui_fan_detail/${id}`)
  },
  xing_zheng_gui_fan_post(data) {
    return request.post(`/api/user/xing_zheng_gui_fan_list`,data)
  },
  xing_zheng_gui_fan_del(id) {
    return request.delete(`/api/user/xing_zheng_gui_fan_del/${id}`)
  },
  // 公开指南
  gong_kai_zhi_lan(params) {

    return request.get('/api/user/gong_kai_zhi_lan_list', {
      params
    })
  },
  // 公开制度
  gong_kai_zhi_du(params) {
    return request.get('/api/user/gong_kai_zhi_du_list', {
      params
    })
  },
  // 公开制度详情
  gong_kai_zhi_du_detail(id) {
    return request.get(`/api/user/gong_kai_zhi_du_detail/${id}`)
  },
  //法定公开内容
  xing_zheng_gong_kai(params) {
    return request.get('/api/user/xing_zheng_gong_kai_list', {
      params
    })
  },
  //法定公开内容
  xing_zheng_gong_kai_post(params) {
    return request.post('/api/user/xing_zheng_gong_kai_list', params)
  },
  xing_zheng_gong_kai_del(id) {
    return request.delete(`/api/user/xing_zheng_gong_kai_del/${id}`)
  },
  //法定公开详情
  xing_zheng_gong_kai_detail(params) {
    return request.get(`/api/user/xing_zheng_gong_kai_detail/${params.id}`)
  },
  //申请
  applys(data) {
    return request.post('/api/user/apply', data)
  },
  //申请列表
  applysList(params) {
    return request.get('/api/user/apply', {
      params
    })
  },
  //更新申请状态
  updateApply(data) {
    return request.put('/api/user/apply', data)
  },
  updateApply2(data) {
    return request.put('/api/user/apply/all', data)
  },
  //地区列表
  areaList() {
    return request.get('/api/user/area')
  },
  //注册用户
  register(data) {
    return request.post('/api/user/register', data)
  },
  //用户登陆
  login(data) {
    return request.post('/api/user/login', data)
  },
  //获取用户信息
  userInfo() {
    return request.get('/api/user/userinfo')
  }

}
